// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   EditFieldDocumentListener.java

package org.quickserver.net.qsadmin.gui;

import javax.swing.JButton;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;

public class EditFieldDocumentListener
    implements DocumentListener
{

    public EditFieldDocumentListener(JButton saveButton)
    {
        this.saveButton = saveButton;
    }

    public void insertUpdate(DocumentEvent e)
    {
        if(saveButton != null)
            saveButton.setEnabled(true);
    }

    public void removeUpdate(DocumentEvent e)
    {
        if(saveButton != null)
            saveButton.setEnabled(true);
    }

    public void changedUpdate(DocumentEvent documentevent)
    {
    }

    JButton saveButton;
}
